package com.sunny.ynhz.ui.mine;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.sunny.ynhz.R;
import com.sunny.ynhz.ui.base.AppBaseTranslationTitleBarActivity;
import com.sunny.ynhz.utils.CheckVersionUtlils;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by luao on 2017/10/16.
 */

public class AboutActivity extends AppBaseTranslationTitleBarActivity {
    @BindView(R.id.version)
    TextView version;
    private Activity activity;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        activity = this;
        version.setText("版本号：" + CheckVersionUtlils.getVersionName(activity));
    }

    @OnClick(R.id.update_btns)
    public void onClick(){
        CheckVersionUtlils.getVersion(activity, 1);
    }

}
